package com.example.business_oa.service;

import com.example.comment_oa.dubbo.RcDubbo;
import com.example.comment_oa.pojos.attendance.ReplacementCardAp;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class RcService {
    @DubboReference(version = "1.0.0")
    RcDubbo rcDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public int apRc(ReplacementCardAp replacementCardAp, MultipartFile file){
        return rcDubbo.apRc(replacementCardAp,file);
    }
    @GlobalTransactional(timeoutMills = 300000)
    public int yesRc(String time,String userId,String rcId,String yesUser){
        return rcDubbo.yesRc(time,userId,rcId,yesUser);
    }
    @GlobalTransactional(timeoutMills = 300000)
    public int noRc(String rcId,String yesUser){
        return rcDubbo.noRc(rcId,yesUser);
    }

}
